<html>
<head>
<script>
function doit() {
var x = document.getElementById("doodad");
//.document.plugins.whatever
x.click();
x.setActive();
x.focus();
x.print();
}
</script>

</head>
<body>
<embed id="doodad" src="file:///home/ian/laece/print.pdf" height="500" width="500"
name="whatever">
<button onclick="doit()">howdy</button>
</body>
</html>
